const mongoose = require('mongoose')

const adminSchema = mongoose.Schema({
  name: { type: String, default: "管理员" },
  username: { type: String, required: true }, //账号
  password: { type: String, required: true }, // 密码-MD5
  avatar: { type: String, default: "" }, // 头像
})

const adminModel = mongoose.model('adminUsers', adminSchema);

module.exports = {
  adminModel
}